package com.example.a2;

import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;

/**
 * Created by 俊辉 on 2018/4/18.
 */

public class logActivity2 extends AppCompatActivity{
    static final String LIFE_TAG="LogActivity2";
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_log_2);
        Log.v(logActivity2.LIFE_TAG,"SecondActivity ---> onCreate");
        Button bt=(Button) findViewById(R.id.bt);
        bt.setOnClickListener(new ButtonOnClickListener());
    }
    class ButtonOnClickListener implements View.OnClickListener{
        public void onClick(View v){
            finish();
        }
    }
    protected void onDestroy() {
        Log.v(logActivity2.LIFE_TAG, "SecondActivity ---> onDestroy");
        super.onDestroy();
    }

    protected void onPause() {
        Log.v(logActivity2.LIFE_TAG, "SecondActivity ---> onPause");
        super.onPause();
    }

    protected void onRestart() {
        Log.v(logActivity2.LIFE_TAG, "SecondActivity ---> onRestart");
        super.onRestart();
    }

    protected void onResume() {
        Log.v(logActivity2.LIFE_TAG, "SecondActivity ---> onResume");
        super.onResume();
    }

    protected void onStart() {
        Log.v(logActivity2.LIFE_TAG, "SecondActivity ---> onStart");
        super.onStart();
    }

    protected void onStop(){
        Log.v(logActivity2.LIFE_TAG,"SecondActivity ---> onStop");
        super.onStop();
    }
}
